﻿namespace PoemService.Shared
{
    /// <summary>
    /// 诗词服务
    /// </summary>

    public interface IPoemService
    {
        /// <summary>
        /// 诗句是否存在
        /// </summary>
        /// <param name="line"></param>
        /// <returns></returns>
        Task<bool> IsPoemLineExist(string line);
        /// <summary>
        /// 获取诗句
        /// </summary>
        /// <param name="line"></param>
        /// <returns></returns>
        Task<PoemLine> GetPoemLine(string line);
        /// <summary>
        /// 获取诗的诗句
        /// </summary>
        /// <param name="poemId"></param>
        /// <returns></returns>
        Task<List<PoemLine>> GetPoemLineByPoemId(string poemId);
        /// <summary>
        /// 获取诗人
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        Task<Poet> GetPoetByName(string name);


    }
}